﻿// ***********************************************************************
// Assembly         : MVC4Portal
// Author           : LJO+01 (Laurent Jordi)
// Created          : 06-05-2013
// Last Modified By : LJO+01 (Laurent Jordi)
// Last Modified On : 06-05-2013
// ***********************************************************************
// <copyright file="ScriptsGController.cs" company="Copyright © Innovacall 2011">
//     Copyright (c) Copyright © Innovacall 2011. All rights reserved.
// </copyright>
// <summary></summary>
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using InnovaApp.Layers.ResourcesLayer.Properties;
using InnovaApp.Portals.MVC4Portal.Models.ClientFilesGenerationModels;
using System.Globalization;
using System.Threading;

namespace InnovaApp.Portals.MVC4Portal.Controllers.ClientFilesGenerationControllers
{
    /// <summary>
    /// Class ScriptsGController
    /// </summary>
    public partial class ScriptsGController : _ClientFilesGenerationControllers_Base
    {
        /// <summary>
        /// The _to return
        /// </summary>
        private ScriptGModel _toReturn;
        /// <summary>
        /// Gets to return.
        /// </summary>
        /// <value>To return.</value>
        protected ScriptGModel toReturn
        {
            get
            {
                if (_toReturn == null)
                {
                    _toReturn = new ScriptGModel();
                    //Put here variables common to all views
                    _toReturn.Variables.Add("ScriptsGData_MainAjaxErrorTitle", Resources.ScriptsGData_MainAjaxErrorTitle);
                    _toReturn.Variables.Add("ScriptsGData_MsgConfirmDelete", Resources.View_All_ConfirmDelete);
                    _toReturn.Variables.Add("cap_MyPrettyCMS_MessageTitle", Resources.View_All_Cap_MyPrettyCMS_MessageTitle);
                    _toReturn.Variables.Add("cap_ConfirmRemovingElement", Resources.View_All_Cap_ConfirmRemovingElement);
                    _toReturn.Variables.Add("cap_DialogErrorTitle", Resources.View_All_DialogErrorTitle);
                    _toReturn.Variables.Add("cap_DialogMyProfileTitle", Resources.View_All_DialogMyProfileTitle);
                    _toReturn.Variables.Add("cap_OpeningMessageTitle", Resources.View_All_cap_OpeningMessageTitle);
                    _toReturn.Variables.Add("cap_YesButtonCaption", Resources.cap_YesButtonCaption);
                    _toReturn.Variables.Add("cap_NoButtonCaption", Resources.cap_NoButtonCaption);
                    _toReturn.Variables.Add("cap_Warning", Resources.View_All_WarningTitle);
                    _toReturn.Variables.Add("cap_Cancel", Resources.View_All_Cancel);
                    _toReturn.Variables.Add("cap_Close", Resources.View_All_Close);
                    _toReturn.Variables.Add("cap_Ok", Resources.View_All_Ok);
                    _toReturn.Variables.Add("cap_AddAddressOrTelecom", Resources.View_MyProfile_cap_AddAddressOrTelecom);
                    _toReturn.Variables.Add("cap_UpdateAddressOrTelecom", Resources.View_MyProfile_cap_UpdateAddressOrTelecom);
                    _toReturn.Variables.Add("cap_iconUploadDialogOpenButton", Resources.View_MyProfile_cap_iconUploadDialogOpenButton);
                    _toReturn.Variables.Add("cap_MyProfile_UploadUserIconDialogTitle", Resources.View_MyProfile_cap_MyProfile_UploadUserIconDialogTitle);
                    _toReturn.Variables.Add("cap_MyProfileCmdCompetencies", Resources.View_MyProfile_cap_MyProfileCmdCompetencies);
                    _toReturn.Variables.Add("cap_MyProfileCmdAddresses", Resources.View_MyProfile_cap_MyProfileCmdAddresses);
                    _toReturn.Variables.Add("cap_MyProfileCmdTelecoms", Resources.View_MyProfile_cap_MyProfileCmdTelecoms);
                    _toReturn.Variables.Add("cap_MyProfileCmdChangePassword", Resources.View_MyProfile_cap_MyProfileCmdChangePassword);
                    _toReturn.Variables.Add("Ety_v_ContactCompetencies_CompetencyName", MetaDataResources.Ety_v_ContactCompetencies_CompetencyName);
                    _toReturn.Variables.Add("Ety_v_ContactCompetencies_YearsOfExperience", MetaDataResources.Ety_v_ContactCompetencies_YearsOfExperience);
                    _toReturn.Variables.Add("Ety_v_ContactCompetencies_SortIndex", MetaDataResources.Ety_v_ContactCompetencies_SortIndex);
                    _toReturn.Variables.Add("Ety_v_ContactTelecoms_Value", MetaDataResources.Ety_v_ContactTelecoms_Value);
                    _toReturn.Variables.Add("Ety_v_ContactTelecoms_TelecomType", MetaDataResources.Ety_v_ContactTelecoms_TelecomType);
                    _toReturn.Variables.Add("Ety_v_ContactTelecoms_SortIndex", MetaDataResources.Ety_v_ContactTelecoms_SortIndex);
                    _toReturn.Variables.Add("Ety_v_ContactAddresses_AddressLabel", MetaDataResources.Ety_v_ContactAddresses_AddressLabel);
                    _toReturn.Variables.Add("Ety_v_ContactAddresses_Town", MetaDataResources.Ety_v_ContactAddresses_Town);
                    _toReturn.Variables.Add("Ety_v_ContactAddresses_Country", MetaDataResources.Ety_v_ContactAddresses_Country);
                    _toReturn.Variables.Add("Ety_v_ContactAddresses_isBilling", MetaDataResources.Ety_v_ContactAddresses_IsBilling);
                    _toReturn.Variables.Add("Ety_v_ContactAddresses_isDelivery", MetaDataResources.Ety_v_ContactAddresses_IsDelivery);
                    _toReturn.Variables.Add("Ety_v_ContactAddresses_isCorrespondence", MetaDataResources.Ety_v_ContactAddresses_IsCorrespondence);
                    _toReturn.Variables.Add("Ety_v_ContactAddresses_SortIndex", MetaDataResources.Ety_v_ContactAddresses_SortIndex);

                    _toReturn.Variables.Add("cap_KendoUIGrid_Pageable_To", Resources.View_All_Cap_KendoUIGrid_Pageable_To);
                    _toReturn.Variables.Add("cap_KendoUIGrid_Pageable_Of", Resources.View_All_Cap_KendoUIGrid_Pageable_Of);
                    _toReturn.Variables.Add("cap_KendoUIGrid_Pageable_Elements", Resources.View_All_Cap_KendoUIGrid_Pageable_Elements);

                    _toReturn.Variables.Add("cap_MyProfileCmdNew", Resources.View_MyProfile_cap_MyProfileCmdNew);

                    _toReturn.Variables.Add("cap_ProfileDetail_Telecom", Resources.cap_ProfileDetail_Telecom);
                    _toReturn.Variables.Add("cap_ProfileDetail_Address", Resources.cap_ProfileDetail_Address);
                    _toReturn.Variables.Add("cap_ProfileDetail_Competency", Resources.cap_ProfileDetail_Competency);

                    _toReturn.Variables.Add("cap_EtyName_Competencies", Resources.View_All_cap_EtyName_Competencies);
                    _toReturn.Variables.Add("cap_EtyName_Competency", Resources.View_All_cap_EtyName_Competency);

                    _toReturn.Variables.Add("Ety_v_Competencies_Name", MetaDataResources.Ety_v_Competencies_Name);
                    _toReturn.Variables.Add("Ety_v_Competencies_Description", MetaDataResources.Ety_v_Competencies_Description);

                    _toReturn.Variables.Add("cap_EtyName_TelecomTypes", Resources.View_All_cap_EtyName_TelecomTypes);
                    _toReturn.Variables.Add("cap_EtyName_TelecomType", Resources.View_All_cap_EtyName_TelecomType);

                    _toReturn.Variables.Add("Ety_v_Telecoms_Name", MetaDataResources.Ety_v_TelecomTypes_Name);
                    _toReturn.Variables.Add("Ety_v_Telecoms_Description", MetaDataResources.Ety_v_TelecomTypes_Description);

                    _toReturn.Variables.Add("cap_AdminSettingsLayoutShowHideDialog", Resources.View_All_Cap_AdminSettingsLayoutShowHideDialog_Title);
                    _toReturn.Variables.Add("cap_AdminSettingsLayoutCSSDetails_Help", Resources.View_All_Cap_AdminSettingsLayoutCSSDetails_Help);

                    _toReturn.Variables.Add("cap_HeightMode", Resources.View_All_Cap_HeightMode);

                    _toReturn.Variables.Add("Authority", Request.Url.Authority);

                    _toReturn.Variables.Add("cap_Ribbon_AddGridsterWidget", Resources.View_All_Cap_Ribbon_AddGridsterWidget);
                    _toReturn.Variables.Add("cap_Ribbon_AddGridsterWidget_Title", Resources.View_All_Cap_Ribbon_AddGridsterWidget_Title);

                    _toReturn.Variables.Add("cap_Ribbon_FileManagement", Resources.View_All_Cap_Ribbon_FileManagement);
                    _toReturn.Variables.Add("cap_Ribbon_FileManagement_Title", Resources.View_All_Cap_Ribbon_FileManagement_Title);

                    _toReturn.Variables.Add("cap_ConfirmDropNonEmptyLayoutSlot_Title", Resources.View_DynaContentAdmin_Cap_ConfirmDropNonEmptyLayoutSlot_Title);
                    _toReturn.Variables.Add("cap_ConfirmDropNonEmptyLayoutSlot_Message", Resources.View_DynaContentAdmin_Cap_ConfirmDropNonEmptyLayoutSlot_Message);
                    _toReturn.Variables.Add("cap_LayoutSlotCannotBeRemoved_Message", Resources.View_DynaContentAdmin_Cap_LayoutSlotCannotBeRemoved_Message);
                    
                    _toReturn.Variables.Add("cap_ConfirmLayoutSlotNotEmptyContentLostIf_Title", Resources.View_DynaContentAdmin_Cap_ConfirmLayoutSlotNotEmptyContentLostIf_Title);
                    _toReturn.Variables.Add("cap_ConfirmLayoutSlotNotEmptyContentLostIf_Message", Resources.View_DynaContentAdmin_Cap_ConfirmLayoutSlotNotEmptyContentLostIf_Message);
                        

                }
                return _toReturn;
            }
        }
        /// <summary>
        /// LocalizeDynamicScripts
        /// </summary>
        /// <param name="language"></param>
        protected void LocalizeDynamicScripts(string language)
        {
            INNOVACALL.Framework.Common.MVCHelpers.Localization.CommonLocalization.SetCurrentThreadLanguage(language);
        }
    }
}
